<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-once]{
            display: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <!-- v-once 对一个节点及节点之下的节点初始化渲染，不接受二次渲染 -->
        <span v-once>
            {{ message }}
        </span>
        <div v-once>
            <span>
                {{messages}}
            </span>
        </div>
    </div>
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <script>
        app = new Vue({
            el: '#app',
            data(){
                return {
                    message: "吃完东西，肚子舒服",
                    messages: '就是口渴了'
                }
            }
        });
    </script>
</body>
</html>